package com.whale.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 场地占用明细
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VenceOccupy implements Serializable {

    private String id;

    //预约的场地号
    private Integer venueNumber;

    //开始时间
    @JsonFormat(shape =  JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    //结束时间
    @JsonFormat(shape =  JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private  LocalDateTime endTime;

    //预约id
    private Long reserveId;

    //预约类型
    private Integer type;

}
